package com.koron.rating.change.mapper;

import com.koron.rating.change.bean.UnitChangeDetBean;
import com.koron.rating.change.bean.UnitOldBean;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface UnitOldBeanMapper {
    int deleteByPrimaryKey(String primaryId);

    int insert(UnitOldBean record);

    int insertSelective(UnitOldBean record);

    UnitOldBean selectByPrimaryKey(String primaryId);

    int updateByPrimaryKeySelective(UnitOldBean record);

    int updateByPrimaryKey(UnitOldBean record);

    int batchInsert(@Param("list") List<UnitOldBean> list);

    int batchInsertChangeDet(@Param("list") List<UnitChangeDetBean> list);

    List<UnitOldBean> queryAllByPrimaryIdIn(@Param("primaryIdCollection")Collection<String> primaryIdCollection);




}
